package com.shop.shoporder.service.impl;

import com.shop.shoporder.entity.GroupbuyFinace;
import com.shop.shoporder.mapper.GroupbuyFinaceMapper;
import com.shop.shoporder.service.GroupbuyFinaceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("groupbuyFinaceService")
public class GroupbuyFinaceServiceImpl implements GroupbuyFinaceService {

    @Autowired
    GroupbuyFinaceMapper groupbuyFinaceMapper;

    @Override
    public int deleteByPrimaryKey(int groupbuyfinaceId) {
        return groupbuyFinaceMapper.deleteByPrimaryKey(groupbuyfinaceId);
    }

    @Override
    public int insert(GroupbuyFinace record) {
        return groupbuyFinaceMapper.insert(record);
    }

    @Override
    public int insertSelective(GroupbuyFinace record) {
        return groupbuyFinaceMapper.insertSelective(record);
    }

    @Override
    public GroupbuyFinace selectByPrimaryKey(int groupbuyfinaceId) {
        return groupbuyFinaceMapper.selectByPrimaryKey(groupbuyfinaceId);
    }

    @Override
    public int updateByPrimaryKeySelective(GroupbuyFinace record) {
        return groupbuyFinaceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GroupbuyFinace record) {
        return groupbuyFinaceMapper.updateByPrimaryKey(record);
    }

    @Override
    public GroupbuyFinace getMaxGroupbuyCount() {
        return groupbuyFinaceMapper.getMaxGroupbuyCount();
    }

    @Override
    public List<GroupbuyFinace> getGroupbuyFinaceList() {
        return  groupbuyFinaceMapper.getGroupbuyFinaceList();
    }
}
